package com.wootion.cims.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wootion.cims.module.systemsetting.community.model.SysCommunity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: LanQiang
 * @Date: 2022/11/21/11:28
 * @Description: 作用xxx
 */
@Mapper
public interface SysCommunityDao extends BaseMapper<SysCommunity> {
    /**
     * 查询当前用户权限所能查看的社区
     */
    List<SysCommunity> findByCommunity(@Param("commnityIds") List<String> commnityIds);
    /**
     * 社区分组信息
     * @return
     */
    List<String> findGroupCommunity(@Param("ids")List<String> commnityIds);
    /**
     * 根据id获取社区分组信息
     */
    List<SysCommunity> findByCommunityIds(@Param("ids")List<String> ids);
}
